package com.neusoft.rental.controller;

import com.neusoft.rental.service.ManagerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/ManagerController")
public class ManagerController {

    @Autowired
    private ManagerService managerService;

    //管理员登录
    @RequestMapping("/managerLogin")
    public int managerLogin(String name, String passwd) {
        return managerService.managerLogin(name,passwd);
    }
}
